﻿using System;
using System.Collections.Generic;
using System.Windows.Forms;
using System.Xml;
using System.Text;
using UIShell.OSGi;
using System.Reflection;
using UIShell.PageFlowService;
using System.Threading;
using System.Runtime.Serialization;
using Start.Properties;
using UIShell.OSGi.Utility;
using System.Configuration;
using UIShell.OSGi.Logging;
//using UIShell.iOpenWorks.Bootstrapper;

namespace Start
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            using (var runtime = new BundleRuntime())
            {
                //启动内核，加载插件
                runtime.Start();
                //显示主窗口
                var form = runtime.GetFirstOrDefaultService<Form>();
                if (form == null)
                {
                    return;
                }
                Application.Run(form);
            }

        }

    }
}
